package com.matt.repository.courseV2;

import com.matt.commons.page.PagerQuery;
import com.matt.domain.courseV2.VendorCourse;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface VendorCourseRepository extends JpaRepository<VendorCourse, String>, JpaSpecificationExecutor<VendorCourse> {

    List<VendorCourse> findAllByCoursePackageId(String coursePackageId);

    Page<VendorCourse> findByCoursePackageIdIn(String[] coursePackageIds,Pageable pageable);
}